package com.huishi.entity;

import java.util.Objects;

/**
 * 目标对象
 */
public class DictTarget {

    private Long id;

    private String targetName;


    public DictTarget(Long id, String targetName) {
        this.id = id;
        this.targetName = targetName;
    }

    public DictTarget() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTargetName() {
        return targetName;
    }

    public void setTargetName(String targetName) {
        this.targetName = targetName;
    }

    @Override
    public String toString() {
        return targetName;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null || getClass() != obj.getClass()) return false;
        DictTarget that = (DictTarget) obj;
        return id == that.id;
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
